package com.cq.androidtools.jetpack.databinding

/**
 * 作者: CQ
 * 日期: 2021-07-01
 * 说明:
 */
sealed class Person(open val id :Int, open val name:String) {
}


data class Student(
    override val id:Int,
    override val name:String,
    val grade:String):Person(id, name)


data class Teacher(
    override val id:Int,
    override val name:String,
    val subject:String):Person(id, name)

class A{
    var a = ""
}